package com.icloud.wallet.boot.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@Builder
@ApiModel(value = "充值订单对象", description = "充值订单表")
@TableName("t_recharge_order_items")
public class TRechargeOrderItems implements Serializable {
    @ApiModelProperty("主键")
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;

    @ApiModelProperty("订单Id order.id")
    @TableField(value="order_id")
    private Long orderId;

    @ApiModelProperty("加密货币币种")
    @TableField(value="crypto_currency")
    private String cryptoCurrency;

    @ApiModelProperty("付款地址")
    @TableField(value="pay_addr")
    private String payAddr;

    @ApiModelProperty("收款地址")
    @TableField(value="bene_addr")
    private String beneAddr;

    @ApiModelProperty("合约地址")
    @TableField(value="contract_addr")
    private String contractAddr;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ApiModelProperty("修改时间")
    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
